Creating Connection Points Control for Events:

1_ Add a class as of above in XP system, called it C_STARTPROCESS;

2_ Choose ATL Control, for control based object;

3_ After placing in names for the class control, press next & select “Connection Points” & under “Appearance” check “insert able”;

This will allow this control to be inserted as embedded object into application; Click Finish & build the project;

Under the project lib, add a method to create events, we will attempt to create a simple calc.exe start event by clicking the mouse;

Create an empty void return type & method name & click “finish”; The method will be created in “atlmain.cpp” (assuming our project name is atlmain;

We will then have to right click on the class file that we created & select “add connection point”;

Click the arrow button to implement;

Right click the class file, under “properties”, you will see the screen on the right side of the above screenshot & select “Message”;

Select WM_LBUTTONDOWN & add the box selection of “<add> onLBUTTONDOWN”;

The wizard will write the code on “C_STARTPROCESS.cpp” & add in the calc.exe start process code & build the project;
And Html file will be created in the project folder, open with IE & click on it to trigger calc.exe on local system;